package com.entity;

import java.io.Serializable;

/**
 * zone
 * @author 
 */
public class Zone implements Serializable {
    private Integer zid;

    private String zname;

    private Integer cid;

    private static final long serialVersionUID = 1L;

    public Integer getZid() {
        return zid;
    }

    public void setZid(Integer zid) {
        this.zid = zid;
    }

    public String getZname() {
        return zname;
    }

    public void setZname(String zname) {
        this.zname = zname;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Zone other = (Zone) that;
        return (this.getZid() == null ? other.getZid() == null : this.getZid().equals(other.getZid()))
            && (this.getZname() == null ? other.getZname() == null : this.getZname().equals(other.getZname()))
            && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getZid() == null) ? 0 : getZid().hashCode());
        result = prime * result + ((getZname() == null) ? 0 : getZname().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", zid=").append(zid);
        sb.append(", zname=").append(zname);
        sb.append(", cid=").append(cid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}